import router from '@system.router';
export default {
    data: {
        title: 'World',
        data3:'这是第二页数据',
        userName:'',
        title2:'第二个标题'
    },
    backTo(){
        router.push({uri:'pages/testPage/testPage', params:{
            title1:this.data3
        }})
    },
    infoTo(result){
        console.log('输入框改变：'+JSON.stringify(result.text))
        this.$set('userName',result.text)
        console.log("userName"+this.userName)

    },
    shuaXin(){
        this.onShow()
    },
    title2Change(res){
        console.log('标题2输入框改变：'+JSON.stringify(res.text))
        this.title2 = res.text
        console.log("标题2："+this.title2)


    },
    onShow(){

    }
}
